package cn.usian;

import com.sun.org.apache.regexp.internal.RE;

public class Singleton {
    private static Singleton instance = new Singleton();

    private Singleton() {

    }

    public static Singleton getInstance() {
        System.out.println("饿汉式单例");
        return instance;
    }

    public static void main(String[] args) {
        getInstance();
    }


}
